"""YCDwork URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

from worksite.views import login, views, add_data, search

urlpatterns = [
    url(r'^$', views.index),
    url(r'^admin/', admin.site.urls),
    url(r'^userinfo.html$', views.userinfo),
    url(r'^index.html', views.index),
    url(r'^userinfo_del/', views.userinfo_del),
    url(r'^baseline.html$', views.baseline),
    url(r'^myworksoftware.html$', views.myworksoftware),
    url(r'^edit_myworksoftware/', views.edit_myworksoftware),
    url(r'^add_userinfo.html$', add_data.add_userinfo),
    url(r'^edit_userinfo/', views.edit_userinfo),
    url(r'^edit_baseline/', views.edit_baseline),
    url(r'^modal_add_userinfo/', views.modal_add_userinfo),
    url(r'^ip_check/', views.ip_check),
    url(r'^add_host.html$', add_data.addhost),
    url(r'^add_myworkbaseline/$', add_data.add_myworkbaseline),

    url(r'^softwareinfo.html$', views.softwareinfo),
    url(r'^hostinfo.html$', views.hostinfo),
    url(r'^data/$', views.data),
    url(r'^addmyworksoftware/$', add_data.addmyworksoftware),
    url(r'^delmyworksoftware/$', views.delmyworksoftware),
    url(r'^del_myworkbaseline/', views.del_myworkbaseline),
    url(r'^edit_hostinfo/', views.edit_hostinfo),
    url(r'^del_hostinfo/', views.del_hostinfo),

    url(r'^login.html$', login.login),
    url(r'^logout/$', login.logout),
    url(r'^reg.html$', login.register),

    url(r'^search_useinfo/$', search.search_useinfo),
    url(r'^search_baseline/$', search.search_baseline),
    url(r'^search_myworksoftware/$', search.search_myworksoftware),
    url(r'^search_hostinfo/$', search.search_hostinfo),


]
